package com.example.environment.service;


import com.example.environment.entity.User;
import com.example.environment.entity.base.BaseRspPageBean;

/**
 *  @author: wangbo(1141294273@qq.com)
 *  @Date: 2021/1/27 18:34
 *  @Description: 公共业务接口父类
 */
public interface UserService{

    /**
    * @Description 添加
    * @Author  wangbo
    * @Date    2021/1/27 18:55
    * @Param   user
    * @Return  boolean
    * @Exception
    *
    */
    boolean insertSelective(User user);


    /**
    * @Description 根据拼装条件修改
    * @Author  wangbo
    * @Date    2021/1/27 18:57
    * @Param   user
    * @Return  boolean
    * @Exception
    *
    */
    boolean updateByUser(User user);



    /**
    * @Description 根据条件查询结果集
    * @Author  wangbo
    * @Date    2021/1/27 18:57
    * @Param   uid
    * @Return  User
    * @Exception
    *
    */
    User getByExample(String uid);


    /**
    * @Description 根据条件查询单条
    * @Author  wangbo
    * @Date    2021/1/27 18:58
    * @Param   pageNum
    * @Param   size
    * @Return  PageInfo<User>
    * @Exception 分叶查询
    *
    */
    BaseRspPageBean<User> pageQueryUser(User user, int pageNum, int size);



    

    /**
    * @Description 查询 用户信息
    * @Author  wangbo
    * @Date    2021/1/29 17:24
    * @Param   user
    * @Return  User
    * @Exception
    *
    */
    User login(User user);

}
